<%@ page import="com.es.util.page.*"%>
<%@ page import="java.util.*"%>
<%@	taglib uri="http://java.sun.com/jstl/core" prefix="c"%>   
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>  

<%
 	PageBean pageBean = (PageBean)request.getAttribute("pageBean");
 	
	String path = request.getContextPath();
	if(path.indexOf("://")<0)
	path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	com.es.main.LoginUserBeen userLogin = (com.es.main.LoginUserBeen)session.getAttribute("loginuser");
	
	String msg = (String)request.getAttribute("message");
	if(msg!=null&&!msg.equals("")){
%>
	<script language="javascript">
		alert("<%=msg%>");
	</script>
	
<%}
	request.setAttribute("message",null);
	if(userLogin==null){
%>
	<script language="javascript">
		if(parent.location.href!="<%=path%>jsp/main/login.jsp")
			parent.location.href="<%=path%>jsp/main/login.jsp";
	</script>
	
<%} %>
<base href="<%=path%>" >
<script type="text/javascript" src="sys/js/include/common.js"></script>